using System;

namespace CodingDay.Rx.Shared.Domain
{
    public class DTO
    {
        public DTO()
        {
            Message = CreateRandomMessage();
            Creation = DateTime.Now;
        }

        public string Message { get; set; }
        public DateTime Creation { get; private set; }

        static readonly Random random = new Random();
        private static string CreateRandomMessage()
        {
            return string.Format("Random Message:'{0}'", random.Next(1000));
        }
    }
}